package demo05_Prototype.model;

/**
 * 克隆的方式深拷贝
 */
public class AddressDeepClone01 implements Cloneable{

    private String adressName;

    public AddressDeepClone01(String adressName) {
        this.adressName = adressName;
    }

    public AddressDeepClone01() {
    }
    public String getAdressName() {
        return adressName;
    }

    public void setAdressName(String adressName) {
        this.adressName = adressName;
    }

    @Override
    public String toString() {
        return "AddressDeepClone01{" +
                "adressName='" + adressName + '\'' +
                '}';
    }

    @Override
    public Object clone() throws CloneNotSupportedException {

        return super.clone();
    }
}
